-
Notifications
You must be signed in to change notification settings - Fork 14.8k
KAFKA-18405: Remove ZooKeeper logic from DynamicBrokerConfig #18508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@FrankYang0529 Do you plan to handle #18384 (comment) in this PR? or this PR is used to remove @mimaison WDYT? |
|
Hi @chia7712, I will handle it in this PR because this Jira is created by that thread. Thanks. |
cb12723 to
ab32a19
Compare
|
Hi @chia7712, I have updated PR to handle "advertised.listeners" and failed cases in CI are flaky:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FrankYang0529 thanks for this patch!
| throw new ConfigException(s"Security protocol cannot be updated for existing listener $listenerName") | ||
| } | ||
| if (!newAdvertisedListeners.contains(newConfig.interBrokerListenerName)) | ||
| if (!oldAdvertisedListeners.contains(newConfig.interBrokerListenerName)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is interBrokerListenerName a kind of dynamic config? If not, KafkaConfig has checked it in initialization.
| val oldConfig = server.config | ||
| val newListeners = listenersToMap(newConfig.listeners) | ||
| val newAdvertisedListeners = listenersToMap(newConfig.effectiveAdvertisedBrokerListeners) | ||
| val oldAdvertisedListeners = listenersToMap(oldConfig.effectiveAdvertisedBrokerListeners) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems we can use Set instead of Map, right?
ab32a19 to
121c75b
Compare
121c75b to
bb66345
Compare
Signed-off-by: PoAn Yang <[email protected]>
Signed-off-by: PoAn Yang <[email protected]>
Signed-off-by: PoAn Yang <[email protected]>
bb66345 to
eb24f7e
Compare
|
Hi @chia7712, I address all comments. Could you take a look when you have time? Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I have one follow-up comment.
| */ | ||
| val ReconfigurableConfigs = Set( | ||
| // Listener configs | ||
| SocketServerConfigs.ADVERTISED_LISTENERS_CONFIG, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FrankYang0529 Could you please file a minor follow-up to add this change to zk2kraft.html?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will create a minor PR for it. Thanks.
Reviewers: Chia-Ping Tsai <[email protected]>
…8508) Reviewers: Chia-Ping Tsai <[email protected]>
…8508) Reviewers: Chia-Ping Tsai <[email protected]>
…8508) Reviewers: Chia-Ping Tsai <[email protected]>
zkClientOptin DynamicBrokerConfig.advertised.listenersfromReconfigurableConfigsand related logic.Committer Checklist (excluded from commit message)